package domain;

public class Fruit {
    private String num;
    private String name;
    private int price;
    private int inventory;
    private String unit;

    @Override
    public String toString() {
        return num + "," + name + "," + price + "," + inventory + "," + unit;
    }

    public Fruit() {
    }

    public Fruit(String num, String name, int price, int inventory, String unit) {
        this.num = num;
        this.name = name;
        this.price = price;
        this.inventory = inventory;
        this.unit = unit;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }
}
